package cn.deschen.biz.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @Author hanbin_chen
 * @Description 数据库行信息
 * @DateTime 2021/6/10
 * @Version V1.0.0
 */
@Data
@EqualsAndHashCode
@ApiModel(value="数据库行信息", description="数据库行信息")
public class Columns {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "数据库名")
    @TableField(value = "table_schema")
    private String tableSchema;

    @ApiModelProperty(value = "数据表名")
    @TableField(value = "table_name")
    private String tableName;

    @ApiModelProperty(value = "字段名")
    @TableField(value = "column_name")
    private String columnName;

    @ApiModelProperty(value = "字段索引位置")
    @TableField(value = "ordinal_position")
    private Integer ordinalPosition;


}
